import request from '@/utils/request'

const api_name = '/admin/vod/teacher'
export default {

    // 分页条件查询
    pageList(paras){
        return request({
            url: `${api_name}`,
            method: `post`,
            data: paras
        })
    },

    // 逻辑删除教师
    removeById(id) {
        return request({
          url: `${api_name}/${id}`,
          method: `delete`
        })
      },
    
    // 添加讲师
    save(teacher) {
      return request({
        url: `${api_name}`,
        method: `put`,
        data: teacher
      })
    },
    getById(id) {
      return request({
        url: `${api_name}/${id}`,
        method: `get`
      })
    },
    batchRemove(ids) {
      return request({
        url: `${api_name}`,
        method: `patch`,
        data: ids
      })
    },
}

